#ifndef log_H
#define log_H
#include "operationset.h"
#include "record.h"
#include <QDebug>
using namespace std;

class OperationLog{
private:
    Operation undo;
    Record oldRecord;
    Record newRecord;
    int option; // 0 for expense, everything else for income
public:
    void set(Operation,Record,int);//for add/delete operation log(addRecord/deleteRecord,Record)
    void set(Operation,Record,Record,int);//for modify operation log(modifyRecord,oldRecord,newRecord)
    Operation operationUndo(void);
    int getOption();
    Record getOldRecord(void);
    Record getNewRecord(void);
    void print(void);//for debugging
};

#endif // !log_H
